﻿#include "FITKXYPlotWindow.h"
#include "ui_FITKXYPlotWindow.h"
#include <qwt_plot.h>

namespace Plot
{
    FITKXYPlotWindow::FITKXYPlotWindow(QWidget* parent /*= nullptr*/)
        :Core::FITKAbstractGraph2DWidget(parent)
    {
        _ui = new Ui::FITKXYPlotWindow;
        _ui->setupUi(this);

        _plotWidget = new QwtPlot;
        _ui->gridLayout->addWidget(_plotWidget);
    }


    FITKXYPlotWindow::~FITKXYPlotWindow()
    {
        if (_plotWidget) delete _plotWidget;
        if (_ui) delete _ui;
    }

    QwtPlot* FITKXYPlotWindow::getPlotWidget()
    {
        return _plotWidget;
    }

}

